<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<meta name="viewport" content="width=device-width" />
		<title></title>
		<link rel="stylesheet" href="../public/bootstrap-4.6.1-dist/css/bootstrap.min.css" />
		<link rel="stylesheet" href="./css/base.css" />
		<link rel="stylesheet" href="./css/index.css" />
		<link rel="stylesheet" href="./fonts/font_yu1f9aqrjs/iconfont.css" />
	</head>
	<body>
		<!-- 头部 -->
		<header class="wjs_header d-none d-lg-block">
			<!-- d-none:全部分辨率下都隐藏,d-lg-block:分辨率992以上才会显示 -->
			<div class="container">
				<div class="row">
					<div class="col-md-2">
						<a href="#">
							<!-- iconfont -->
							<span class="iconfont icon-phone"></span>
							<span>手机微金所</span>
							<!-- iconfont -->
							<span class="iconfont icon-xiajiantou"></span>
							<img src="./images/code.jpg" alt="QR" />
						</a>
					</div>
					<div class="col-md-5">
						<!-- iconfont -->
						<span class="iconfont icon-Incoming_call"></span>
						<span>
							<span class="wjs_phone">4006-89-4006</span>
							( 服务时间 : 9:00-21:00 )
						</span>
						<a>联系在线客服</a>
					</div>
					<div class="col-md-2">
						<a href="#">常见问题</a>
						&nbsp;
						<a href="#">财富登录</a>
						&nbsp;
					</div>
					<div class="col-md-3">
						<button type="button" class="btn btn-danger btn-sm">
							免费注册
						</button>
						&nbsp;&nbsp;
						<a href="#">登录</a>
					</div>
				</div>
			</div>
		</header>
		<!-- 导航条 -->
		<div class="bg-light wjs_nav">
			<nav class="navbar navbar-expand-lg navbar-light container">
				<a class="navbar-brand" href="#">
					<span class="wjs_icon wjs_icon_logo"></span>
					<span class="wjs_icon wjs_icon_text"></span>
				</a>
				<button class="navbar-toggler" type="button" data-toggle="collapse"
					data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false"
					aria-label="Toggle navigation">
					<span class="navbar-toggler-icon"></span>
				</button>

				<div class="collapse navbar-collapse" id="navbarSupportedContent">
					<ul class="navbar-nav mr-auto">
						<li class="nav-item">
							<a class="nav-link tz" href="#">我要投资 <span class="sr-only">(current)</span></a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="#">我要借贷</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="#" id="navbarDropdown" role="button" aria-expanded="false">
								平台介绍
							</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="#">新手专区</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="#">最新动态</a>
						</li>
						<li class="nav-item">
							<a class="nav-link" href="#">微平台</a>
						</li>
					</ul>
					<div class="nav-item myuser">
						<a href="#">个人中心</a>
					</div>
				</div>
			</nav>
		</div>
		<!-- banner -->
		<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
			<ol class="carousel-indicators">
				<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
				<li data-target="#carouselExampleIndicators" data-slide-to="3"></li>
			</ol>
			<div class="carousel-inner">
				<div class="carousel-item active" data-mobileImg="./images/slide_01_640x340.jpg"
					data-PCImg="./images/slide_01_2000x410.jpg">
					<!-- mobile1 -->
					<!-- PC1 -->
				</div>
				<div class="carousel-item" data-mobileImg="./images/slide_02_640x340.jpg"
					data-PCImg="./images/slide_02_2000x410.jpg">
					<!-- mobile2 -->
					<!-- PC2 -->
				</div>
				<div class="carousel-item" data-mobileImg="./images/slide_03_640x340.jpg"
					data-PCImg="./images/slide_03_2000x410.jpg">
					<!-- mobile3 -->
					<!-- PC3 -->
				</div>
				<div class="carousel-item" data-mobileImg="./images/slide_04_640x340.jpg"
					data-PCImg="./images/slide_04_2000x410.jpg">
					<!-- mobile4 -->
					<!-- PC4 -->
				</div>
			</div>
			<button class="carousel-control-prev" type="button" data-target="#carouselExampleIndicators"
				data-slide="prev">
				<span class="carousel-control-prev-icon" aria-hidden="true"></span>
				<span class="sr-only">Previous</span>
			</button>
			<button class="carousel-control-next" type="button" data-target="#carouselExampleIndicators"
				data-slide="next">
				<span class="carousel-control-next-icon" aria-hidden="true"></span>
				<span class="sr-only">Next</span>
			</button>
		</div>
		<!-- 信息模块 -->
		<div class="information">
			<div class="container">
				<div class="row">
					<!-- 第一个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
					<!-- 第二个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
					<!-- 第三个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
					<!-- 第四个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
					<!-- 第五个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
					<!-- 第六个 -->
					<div class="col-md-6 col-lg-4 d-none d-md-block">
						<div class="media">
							<span class="wjs_icon wjs_iconn_E903"></span>
							<div class="media-body">
								<h5 class="mt-0">支持交易保障</h5>
								<p>银联支持全程保障支付安全</p>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- 预约模块 -->
		<div class="appointment d-none d-lg-block">
			<div class="container">
				<div class="row">
					<div class="col-md-9">
						<span class="wjs_icon wjs_icon_E906"></span>
						<span>现在有 99 人在排队,累计预约交易成功751次</span>
						<a href="#"> 什么叫预约投标 </a>
						<a href="#" class="appointmentRow"> 立即预约 </a>
					</div>
					<div class="col-md-3">
						<span class="wjs_icon wjs_icon_E905"></span>
						<a href="javascript:;">
							<span>微金所企业宣传片</span>
						</a>
					</div>
				</div>
			</div>
		</div>
		<!-- tab页 -->
		<div class="tab">
			<div class="container">
				<div id="wrapper" class="wrapper">
					<ul class="nav nav-pills" id="pills-tab" role="tablist">
						<li class="nav-item" role="presentation">
							<a class="nav-link active" id="pills-recommend-tab" data-toggle="pill"
								href="#pills-recommend" role="tab" aria-controls="pills-recommend"
								aria-selected="true">特别推荐</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-investment-tab" data-toggle="pill" href="#pills-investment"
								role="tab" aria-controls="pills-investment" aria-selected="false">微投资</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-xiaobao-tab" data-toggle="pill" href="#pills-xiaobao"
								role="tab" aria-controls="pills-xiaobao" aria-selected="false">微小宝</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-yueying-tab" data-toggle="pill" href="#pills-yueying"
								role="tab" aria-controls="pills-yueying" aria-selected="false">月月盈</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-wenying-tab" data-toggle="pill" href="#pills-wenying"
								role="tab" aria-controls="pills-wenying" aria-selected="false">稳赢宝</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-haihang-tab" data-toggle="pill" href="#pills-haihang"
								role="tab" aria-controls="pills-haihang" aria-selected="false">海航通宝</a>
						</li>
						<li class="nav-item" role="presentation">
							<a class="nav-link" id="pills-jinbao-tab" data-toggle="pill" href="#pills-jinbao" role="tab"
								aria-controls="pills-jinbao" aria-selected="false">微金宝</a>
						</li>
					</ul>
				</div>
				<!-- 对应的面板块 -->
				<div class="tab-content" id="pills-tabContent">
					<div class="tab-pane fade show active" id="pills-recommend" role="tabpanel"
						aria-labelledby="pills-recommend-tab">
						<div class="container">
							<div class="row">
								<!-- 1 -->
								<div class="col-12 col-sm-12 col-md-6 col-lg-4">
									<div class="wjs_box active">
										<!-- 左 -->
										<div class="wjs_left">
											<p>新手体验1022期</p>
											<div class="row">
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
											</div>
										</div>
										<!-- 右 -->
										<div class="wjs_right" id="activeText">
											<b>8</b>
											<sub>%</sub>
											<p>年利率</p>
										</div>
									</div>
								</div>
								<!-- 2 -->
								<div class="col-12 col-sm-12 col-md-6 col-lg-4">
									<div class="wjs_box">
										<!-- 左 -->
										<div class="wjs_left">
											<p>新手体验1022期</p>
											<div class="row">
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
											</div>
										</div>
										<!-- 右 -->
										<div class="wjs_right">
											<div class="text">
												<span id="tip" data-toggle="tooltip" data-placement="top"
													title="稳赢宝">宝</span>
												<span id="tip" data-toggle="tooltip" data-placement="top"
													title="北京">北</span>
											</div>
											<b>8</b>
											<sub>%</sub>
											<p>年利率</p>
										</div>
									</div>
								</div>
								<!-- 3 -->
								<div class="col-12 col-sm-12 col-md-6 col-lg-4">
									<div class="wjs_box">
										<!-- 左 -->
										<div class="wjs_left">
											<p>新手体验1022期</p>
											<div class="row">
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
											</div>
										</div>
										<!-- 右 -->
										<div class="wjs_right">
											<b>8</b>
											<sub>%</sub>
											<p>年利率</p>
										</div>
									</div>
								</div>
								<!-- 4 -->
								<div class="col-12 col-sm-12 col-md-6 col-lg-4">
									<div class="wjs_box">
										<!-- 左 -->
										<div class="wjs_left">
											<p>新手体验1022期</p>
											<div class="row">
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
												<div class="col-sm-6 col-6">
													<p>起投金额(元)</p>
													<span>0.01万</span>
												</div>
											</div>
										</div>
										<!-- 右 -->
										<div class="wjs_right">
											<b>8</b>
											<sub>%</sub>
											<p>年利率</p>
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
					<div class="tab-pane fade" id="pills-investment" role="tabpanel"
						aria-labelledby="pills-investment-tab">
						投资
					</div>
					<div class="tab-pane fade" id="pills-xiaobao" role="tabpanel" aria-labelledby="pills-xiaobao-tab">
						微小宝
					</div>
					<div class="tab-pane fade" id="pills-yueying" role="tabpanel" aria-labelledby="pills-yueying-tab">
						月月盈
					</div>
					<div class="tab-pane fade" id="pills-wenying" role="tabpanel" aria-labelledby="pills-wenying-tab">
						稳赢宝
					</div>
					<div class="tab-pane fade" id="pills-haihang" role="tabpanel" aria-labelledby="pills-haihang-tab">
						海航通宝
					</div>
					<div class="tab-pane fade" id="pills-jinbao" role="tabpanel" aria-labelledby="pills-jinbao-tab">
						微金宝
					</div>
				</div>
			</div>
		</div>
		<!-- 新闻模块 -->
		<div class="newsModule">
			<div class="container">
				<div class="row">
					<div class="col-lg-2 offset-lg-2 allnew">
						<h4>全部新闻</h4>
					</div>
					<div class="col-lg-1 icons">
						<!-- 虚线 -->
						<!-- 为什么不使用伪元素画虚线?? -->
						<!-- 使用伪元素添加虚线: 伪元素必须要求父元素有具体的宽高值
						 所谓具体的宽高值是指在样式中设置了 width/height
					 -->
						<div class="newsLine d-none d-lg-block"></div>
						<ul class="nav flex-column nav-pills" id="v-pills-tab" role="tablist"
							aria-orientation="vertical">
							<li>
								<a class="nav-link active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home"
									role="tab" aria-controls="v-pills-home" aria-selected="false">
									<span class="wjs_icon wjs_icon_new01"></span>
								</a>
							</li>
							<li>
								<a class="nav-link" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile"
									role="tab" aria-controls="v-pills-profile" aria-selected="false">
									<span class="wjs_icon wjs_icon_new02"></span>
								</a>
							</li>
							<li>
								<a class="nav-link" id="v-pills-messages-tab" data-toggle="pill"
									href="#v-pills-messages" role="tab" aria-controls="v-pills-messages"
									aria-selected="false">
									<span class="wjs_icon wjs_icon_new03"></span>
								</a>
							</li>
							<li>
								<a class="nav-link" id="v-pills-settings-tab" data-toggle="pill"
									href="#v-pills-settings" role="tab" aria-controls="v-pills-settings"
									aria-selected="false">
									<span class="wjs_icon wjs_icon_new04"></span>
								</a>
							</li>
						</ul>
					</div>
					<div class="col-lg-7 blackboard">
						<div class="tab-content" id="v-pills-tabContent">
							<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel"
								aria-labelledby="v-pills-home-tab">
									<ul>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】习近平会见德国总理朔尔茨</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】1《个人养老金实施办法》发布热</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】2 中国向空客公司采购140架飞机热</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】3 3D动画演示中国空间站建造历程</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】4 救护车坐地起价?官方:涉事人员被抓热</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】5 广州:防疫期间不讲条件优先治病救人</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】6 苏有朋披荆斩棘总冠军</a>
										</li>
										<li>
											<span >2022年11月4日23:20:00</span>
											<a href="#">【微公告】7 司机未戴口罩被罚2千大哭？多方回应热</a>
										</li>
									</ul>
							</div>
							<div class="tab-pane fade" id="v-pills-profile" role="tabpanel"
								aria-labelledby="v-pills-profile-tab">2</div>
							<div class="tab-pane fade" id="v-pills-messages" role="tabpanel"
								aria-labelledby="v-pills-messages-tab">3</div>
							<div class="tab-pane fade" id="v-pills-settings" role="tabpanel"
								aria-labelledby="v-pills-settings-tab">4</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<footer>
			<div class="container">
				<h4>合作伙伴</h4>
				<ul>
					<div class="row">
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner01"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner02"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner03"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner04"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner05"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner06"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner07"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner08"></a>
						</li>
						<li class="col-lg-1 col-sm-3 col-3">
							<a href="#" class="wjs_icon wjs_icon_partner09"></a>
						</li>
					</div>
				</ul>
				<div class="webNumber">
						<span>
							备案编号：粤ICP备88888888号
						</span>
						<span>
							粤公网安备 8888888888号
						</span>
						<span>
							网站标识：888888
						</span>
				</div>
			</div>
		</footer>
	</body>
	<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.6.1/jquery.js"></script>
	<!-- <script src="https://cdn.bootcdn.net/ajax/libs/popper.js/2.11.6/cjs/enums.js"></script> -->
	<script src="../public/bootstrap-4.6.1-dist/js/bootstrap.min.js"></script>
	<script src="./js/iscroll.js"></script>
</html>
<script>
	let img = document.querySelectorAll('.carousel-item')
	$(function() {
		// 初始化 tip
		// $('#tip').tooltip() //会报错
		// 初始化 nav scroll
		setTimeout(function() {
			new IScroll('.wrapper', {
				scrollX: true,
				scrollY: false,
				click: true,
				keyBindings: true,
				// disablePointer: true,
				disableTouch: false,
				disableMouse: true,
			})
		}, 100)
		$(window)
			.on('resize', function() {
				let width = $(window).width()
				// console.log(width);
				// 以下功能是按需加载图片资源
				if (width >= 768) {
					// 加载pc
					pc()
				} else if (width >= 751 && width <= 767) {
					// 由于框架设置的数值有点问题该数值间会产生空白现象
					zj()
				} else {
					mobile()
				}
			})
			.trigger('resize')

		// 动态设置ul导航栏的宽度
		let ul = $('.tab .nav')
		let lis = ul.find('li')
		let totalWidth = 0
		lis.each(function(i, item) {
			/*
	获取宽度的方法的说明
	width(): content
	innerWidth(): content + padding
	outWidth(): content + padding + border
	outWidth(true): content + padding + border + margin
	  */
			totalWidth += $(item).innerWidth()
			// console.log($(item).innerWidth());
		})
		ul.width(totalWidth)
	})

	function pc() {
		$(img).each(function(i, itemFn) {
			// item(标签对象？？) !== itemFn(标签自身？？)
			let item = $(this) // 当前item项
			let dataAttr = item.data('pcimg') // 获取data自定义属性
			item.html('<a href="javascript:;" class="pcImg d-none d-md-block" ></a>')
			$(item)
				.children('a')
				.css(
					'backgroundImage',
					`
	 	  	url(${dataAttr})
	 	  	`
				)
		})
	}

	function zj() {
		$(img).each(function() {
			let item = $(this) // 当前item项
			let dataAttr = item.data('mobileimg') // 获取data自定义属性
			item.html(`
	 	  	<a href="javascript:;">
	 	  		<img src=${dataAttr} class="w-100">
	 	  	</a>
	 	  	`)
		})
	}

	function mobile() {
		// 加载mobile
		$(img).each(function() {
			let item = $(this) // 当前item项
			let dataAttr = item.data('mobileimg') // 获取data自定义属性
			item.html(`
	 	  	<a href="javascript:;" class="d-md-none d-block" >
	 	  		<img src=${dataAttr} class="w-100">
	 	  	</a>
	 	  	`)
		})
	}
</script>
